package com.hgw.Demo01_ChainOfResponsibilityPattern.ChainOfResponsibilityPattern;

/**
 * Data time:2021/12/16 12:18
 * StudentID:2019112118
 * Author:hgw
 * Description: 抽象处理类
 */
public abstract class Handler {
    // 维持对下家的引用
    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handleRequest(String request);
}
